package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.Tag;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface TagMapper {
    
    int saveTag(Tag tag);
    
    Tag getTagById(Long id);
    
    List<Tag> getAllTag();
    
    Tag getTagByName(String name);
    
    int updateTag(Tag tag);
    
    void deleteTag(Long id);
    
}
